package com.jeff.android.lab.database.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * @author: dingfeng
 * @date: 2019-11-04
 * @since: 1.0.0
 **/
@Entity
public class User {
    @PrimaryKey
    public int id;

    @ColumnInfo(name = "name")
    public String name;

    @ColumnInfo(name = "age")
    public int age;

    @Ignore
    public String pwd;

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

}
